<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>考试系统考生登录</title>
    <th:block th:include="fragment_header :: header">
    </th:block>
</head>

<!--公司颜色   style="background-color: #003366;"-->

<body>
<div class="d-flex align-items-center justify-content-center vh-100">

    <form class="w-25 p-3 " method="post" th:action="@{ /student/loginVerify }" th:object="${studentModel}"
          style="background-color: #e3f2fd;">

        <div><h2>登录</h2></div>
        <!--error massage-->
        <div class="alert alert-warning" role="alert" th:if="${ #fields.hasErrors() }">
            <ul>
                <li th:each="err : ${ #fields.allDetailedErrors() }" style="list-style-type:none">&nbsp;<span
                        th:text="${ err.message }"></span>
                    <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                </li>

            </ul>
        </div>

        <div class="mb-6">
            <label for="inputNum" class="form-label">工号</label>
            <input type="text" class="form-control" id="inputNum" th:field="*{employeeNo}" required>

            <label for="inputPassword" class="form-label">密码</label>
            <input type="password" class="form-control" id="inputPassword" th:field="*{password}" required>
            <!--th:field="*{password}"-->
        </div>

        <div class="d-flex align-items-center justify-content-center" style="position:relative;top:8px">
    <span class="mb-6">
        <a th:href="@{ ${ #mvc.url('SC#add').build() } }" class="btn btn-primary" style="position:relative;right:20px">注册</a>
    </span>

            <span>
        <button type="submit" class="btn btn-primary" style="position:relative;left:20px">登录</button>
    </span>
        </div>

    </form>


</div>
</body>
</html>